let count1 = 0;
let count2 = 0;

function unfold1() {
    let h = document.getElementById("h1");
    let divObj = h.parentNode.children[1];
    if(count1%2==0){
        divObj.className="";
    }else {
        divObj.className="hide";
    }
    console.log(divObj.className);
    count1++;
}


function unfold2() {
    let h = document.getElementById("h2");
    let divObj = h.parentNode.children[1];
    if(count2%2==0){
        divObj.className="";
    }else {
        divObj.className="hide";
    }
    console.log(divObj.className);
    count2++;
}